<script setup lang="ts">
import { showDialog } from 'vant';
const emit = defineEmits(['delete'])
const deletF = () => {
 showDialog({
  title:"确认删除",
  message:"删除是危险操作，无法返回，确认要删除此订单吗",
  showCancelButton:true,
  confirmButtonText:"确认",
  cancelButtonText:"取消",
 }).then(()=>{
  emit('delete')
 })
};
</script>

<template>
  <van-button icon="delete" type="danger" size="small" @click="deletF"></van-button>
</template>

<style lang="scss" scope>
.delete-button {
}
</style>
